package com.bcu.calculus.mapper;

import com.bcu.calculus.entity.Message;
import com.bcu.calculus.entity.Send;

import java.util.List;

public interface SendMapper {

    int insert(Send send);

    int deleteByPrimaryKey(String sendId);

    int updateByPrimaryKey(Send send);

    Send selectByPrimaryKey(String sendId);

    List<Send> selectAllSend();

    List<Send> selectBySendUserId(String sendUserId,Integer semId);

    int insertSelective(Send send);

    int updateByPrimaryKeySelective(Send send);

    List<Send> getSendByManyList(String flist,String slist,String tlsit,String sendSemseterId);

    List<Send> selectBySendUserIdOrdered(String sendUserId);

    List<Send> getAllAvScore();

    List<Send> getAllPR();

    List<Send> selectAllAvScore();

    List<Send> selectAllPR();

    List<Send> getSendsBySemesterId(Integer semesterId);

    Send getSendByManyListAndSemseterIdAndUserId(String flistId, String slistId, String tlistId, String sendSemseterId,String userId);

    int setSendStatusAndSendScoreIsNull(String sendId, Integer sendStatus, String giveUserId);

    List<Send> selectBySendUserIdAndSemId(String sendUserId, Integer semId);

    List<Send> selectBySendUserIdAndSemId1(String sendUserId, Integer semId);
}